package com.example.project.service;

import com.example.project.entity.TcdmSecureHazardAssessmentRecycle;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * (TcdmSecureHazardAssessmentRecycle)表服务接口
 *
 * @author makejava
 * @since 2024-02-23 15:18:23
 */
public interface TcdmSecureHazardAssessmentRecycleService {

    /**
     * 通过ID查询单条数据
     *
     * @param tshareId 主键
     * @return 实例对象
     */
    TcdmSecureHazardAssessmentRecycle queryById(Integer tshareId);


    /**
     * 查询所有数据
     *
     * @return 所有数据
     */
    List<TcdmSecureHazardAssessmentRecycle> findList();

    /**
     * 分页查询
     *
     * @param tcdmSecureHazardAssessmentRecycle 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<TcdmSecureHazardAssessmentRecycle> queryByPage(TcdmSecureHazardAssessmentRecycle tcdmSecureHazardAssessmentRecycle, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param tcdmSecureHazardAssessmentRecycle 实例对象
     * @return 实例对象
     */
    TcdmSecureHazardAssessmentRecycle insert(TcdmSecureHazardAssessmentRecycle tcdmSecureHazardAssessmentRecycle);

    /**
     * 修改数据
     *
     * @param tcdmSecureHazardAssessmentRecycle 实例对象
     * @return 实例对象
     */
    TcdmSecureHazardAssessmentRecycle update(TcdmSecureHazardAssessmentRecycle tcdmSecureHazardAssessmentRecycle);

    /**
     * 通过主键删除数据
     *
     * @param tshareId 主键
     * @return 是否成功
     */
    boolean deleteById(Integer tshareId);

    Boolean recover(Integer tshareId);

    Boolean deleteAll();
}
